package com.yifeng.repo.micro.service.server.mps;

import feign.Param;
import feign.RequestLine;
import next.fire.mps.api.ScanLoginService;
import org.springframework.cloud.openfeign.FeignClient;

@FeignClient(name = "mpsScanLoginServiceClient", url = "${yfcloud.micro.service.mps.url}", path = "/fire-mps")
public interface ScanLoginServiceClient extends ScanLoginService {

    @Override
    @RequestLine("POST /ScanLoginService/getUrl")
    String getUrl(@Param("merchantId") String merchantId, @Param("mpCode") String mpCode, @Param("appRedirectUrl") String appRedirectUrl);

    @Override
    @RequestLine("POST /ScanLoginService/getUrlByApp")
    String getUrlByApp(@Param("appId") String appId, @Param("merchantId") String merchantId, @Param("mpCode") String mpCode, @Param("appRedirectUrl") String appRedirectUrl);

    @Override
    @RequestLine("POST /ScanLoginService/getUrl")
    String getUrl(@Param("merchantId") String merchantId, @Param("mpCode") String mpCode, @Param("appRedirectUrl") String appRedirectUrl, @Param("domain") String domain);

    @Override
    @RequestLine("POST /ScanLoginService/getUrlByApp")
    String getUrlByApp(@Param("appId")String appId, @Param("merchantId") String merchantId, @Param("mpCode") String mpCode, @Param("appRedirectUrl")String appRedirectUrl,
                       @Param("domain") String domain);
}
